package com.visionblue.business.ship.model.repository.db

import androidx.lifecycle.LiveData
import androidx.room.*

/**
 * @author: xlh
 * @date: 2020-05-21 11:21 AM
 * @desc:
 */
@Dao
interface CollectionRecordDao {

    @Query("SELECT * FROM collection_record ORDER BY start_time ASC")
    suspend fun getAll(): List<CollectionRecord>

    @Insert
    suspend fun insert(vararg records: CollectionRecord): List<Long>

    @Delete
    suspend fun delete(vararg collectionRecord: CollectionRecord)

    @Update
    suspend fun update(collectionRecord: CollectionRecord)

}